export function useWindowScroll() {
  const scrollTop = ref(0)
  const handler = () => scrollTop.value = window.scrollY

  onMounted(() => window.addEventListener('scroll', handler))
  onUnmounted(() => window.removeEventListener('scroll', handler))

  return {
    scrollTop
  }
}